Micron Document
<!DOCTYPE html>
<html class="client-nojs vector-feature-night-mode-disabled vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-sticky-header-enabled" lang="en" dir="ltr"><head>
<meta charset="UTF-8">
<title>Programming Perl</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="canonical" href="https://en.wikipedia.org/wiki/Programming_Perl"> <link href="./mw/ext.cite.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.icons.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.search.codex.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/user.styles.css" rel="stylesheet" type="text/css">
<meta name="ResourceLoaderDynamicStyles" content="">
<link rel="stylesheet" type="text/css" href="./mw/site.styles.css">
<link rel="stylesheet" type="text/css" href="./mw/noscript.css">
<link rel="stylesheet" type="text/css" href="./footer.css">
<link rel="stylesheet" type="text/css" href="./vector-2022.css">
</head>
<body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject page-Programming_Perl rootpage-Programming_Perl skin-vector-2022 action-view">
<div class="mw-page-container">
<div class="mw-page-container-inner">
<div class="mw-content-container">
<main id="content" class="mw-body">
<header class="mw-body-header vector-page-titlebar">
<h1 id="firstHeading" class="firstHeading mw-first-heading">
<span id="openzim-page-title" class="mw-page-title-main"><i>Programming Perl</i></span>
</h1>
</header>
<a id="top"></a>
<div id="bodyContent" class="vector-body ve-init-mw-desktopArticleTarget-targetContainer" aria-labelledby="firstHeading" data-mw-ve-target-container="">
<div id="mw-content-text" class="mw-body-content mw-content-ltr" lang="en" dir="ltr"><div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr"><style data-mw-deduplicate="TemplateStyles:r1236090951">
/* start https://en.wikipedia.org/ */


.mw-parser-output .hatnote{font-style:italic}.mw-parser-output div.hatnote{padding-left:1.6em;margin-bottom:0.5em}.mw-parser-output .hatnote i{font-style:normal}.mw-parser-output .hatnote+link+.hatnote{margin-top:-0.5em}@media print{body.ns-0 .mw-parser-output .hatnote{display:none!important}}


/* end https://en.wikipedia.org/ */
</style><div role="note" class="hatnote navigation-not-searchable">Not to be confused with <a href="Programming_Pearls" class="mw-redirect" title="Programming Pearls">Programming Pearls</a>.</div>
<style data-mw-deduplicate="TemplateStyles:r1295905060">
/* start https://en.wikipedia.org/ */


.mw-parser-output .infobox-subbox{padding:0;border:none;margin:-3px;width:auto;min-width:100%;font-size:100%;clear:none;float:none;background-color:transparent}.mw-parser-output .infobox-3cols-child{margin:auto}.mw-parser-output .infobox .navbar{font-size:100%}@media screen{html.skin-theme-clientpref-night .mw-parser-output .infobox-full-data:not(.notheme)>div:not(.notheme)[style]{background:#1f1f23!important;color:#f8f9fa}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .infobox-full-data:not(.notheme)>div:not(.notheme)[style]{background:#1f1f23!important;color:#f8f9fa}}@media(min-width:640px){body.skin--responsive .mw-parser-output .infobox-table{display:table!important}body.skin--responsive .mw-parser-output .infobox-table>caption{display:table-caption!important}body.skin--responsive .mw-parser-output .infobox-table>tbody{display:table-row-group}body.skin--responsive .mw-parser-output .infobox-table th,body.skin--responsive .mw-parser-output .infobox-table td{padding-left:inherit;padding-right:inherit}}


/* end https://en.wikipedia.org/ */
</style><style data-mw-deduplicate="TemplateStyles:r1287740527">
/* start https://en.wikipedia.org/ */


.mw-parser-output .ib-book .infobox-title{font-style:italic;padding-bottom:0.2em}.mw-parser-output .ib-book .Z3988{display:none}.mw-parser-output .ib-book .infobox-below{border-top:#aaa 1px solid}


/* end https://en.wikipedia.org/ */
</style><table class="infobox ib-book vcard"><caption class="infobox-title">Programming Perl </caption><tbody><tr><td colspan="2" class="infobox-image"><div class="infobox-caption">First edition</div></td></tr><tr><th scope="row" class="infobox-label">Author</th><td class="infobox-data"><a href="Larry_Wall" title="Larry Wall">Larry Wall</a>, <a href="Randal_L._Schwartz" title="Randal L. Schwartz">Randal L. Schwartz</a>,</td></tr><tr><th scope="row" class="infobox-label">Publisher</th><td class="infobox-data"><a href="O'Reilly_Media" title="O'Reilly Media">O'Reilly Media</a></td></tr><tr><th scope="row" class="infobox-label"><div style="display: inline-block; line-height: 1.2em; padding: .1em 0;">Publication date</div></th><td class="infobox-data">1991</td></tr><tr><th scope="row" class="infobox-label">Media&nbsp;type</th><td class="infobox-data">Print, Ebook</td></tr><tr><th scope="row" class="infobox-label">Pages</th><td class="infobox-data">1184</td></tr><tr><th scope="row" class="infobox-label"><a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a></th><td class="infobox-data"><style data-mw-deduplicate="TemplateStyles:r1238218222">
/* start https://en.wikipedia.org/ */


.mw-parser-output cite.citation{font-style:inherit;word-wrap:break-word}.mw-parser-output .citation q{quotes:"\"""\"""'""'"}.mw-parser-output .citation:target{background-color:rgba(0,127,255,0.133)}.mw-parser-output .id-lock-free.id-lock-free a{background:url("./mw/Lock-green.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-limited.id-lock-limited a,.mw-parser-output .id-lock-registration.id-lock-registration a{background:url("./mw/Lock-gray-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-subscription.id-lock-subscription a{background:url("./mw/Lock-red-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .cs1-ws-icon a{background:url("./mw/Wikisource-logo.svg")right 0.1em center/12px no-repeat}body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-free a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-limited a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-registration a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-subscription a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .cs1-ws-icon a{background-size:contain;padding:0 1em 0 0}.mw-parser-output .cs1-code{color:inherit;background:inherit;border:none;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;color:var(--color-error,#d33)}.mw-parser-output .cs1-visible-error{color:var(--color-error,#d33)}.mw-parser-output .cs1-maint{display:none;color:#085;margin-left:0.3em}.mw-parser-output .cs1-kern-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right{padding-right:0.2em}.mw-parser-output .citation .mw-selflink{font-weight:inherit}@media screen{.mw-parser-output .cs1-format{font-size:95%}html.skin-theme-clientpref-night .mw-parser-output .cs1-maint{color:#18911f}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .cs1-maint{color:#18911f}}


/* end https://en.wikipedia.org/ */
</style><bdi>978-0-596-00492-7</bdi> (print), 978-1-4493-9890-3 (ebook)</td></tr></tbody></table>
<p><i><b>Programming Perl</b></i>, best known as the <b>Camel Book</b> among <a href="Programmer" title="Programmer">programmers</a>,<sup id="cite_ref-Hughes_1-0" class="reference"><a href="#cite_note-Hughes-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup> is a book about writing programs using the <a href="Perl" title="Perl">Perl</a> <a href="Programming_language" title="Programming language">programming language</a>, revised as several editions (1991–2012) to reflect major language changes since Perl version 4. Editions have been co-written by the creator of Perl, <a href="Larry_Wall" title="Larry Wall">Larry Wall</a>, along with <a href="Randal_L._Schwartz" title="Randal L. Schwartz">Randal L. Schwartz</a>, then <a href="Tom_Christiansen" title="Tom Christiansen">Tom Christiansen</a> and then Jon Orwant. Published by <a href="O'Reilly_Media" title="O'Reilly Media">O'Reilly Media</a>, the book is considered the canonical reference work for Perl programmers. With over 1,000 pages, the various editions contain complete descriptions of each Perl language version and its <a href="Interpreter_(computing)" title="Interpreter (computing)">interpreter</a>. Examples range from trivial <a href="Snippet_(programming)" title="Snippet (programming)">code snippets</a> to the highly complex <a href="Expression_(computer_science)" title="Expression (computer science)">expressions</a> for which Perl is widely known. The camel book editions are also noted for being written in an approachable and humorous style.
</p>
<meta property="mw:PageProp/toc">
<div class="mw-heading mw-heading2"><h2 id="History">History</h2></div>
<p>The first edition, which gained the nickname "the pink camel" due to its pink spine, was originally published in January 1991 and covered version 4 of the Perl language. It was the work of Larry Wall and Randal L. Schwartz. The second edition, published in August 1996, included updates for the release of <a href="Perl#Early_Perl_5" title="Perl">Perl 5</a>, among them <a href="Reference_(computer_science)" title="Reference (computer science)">references</a>, <a href="Object_(object-oriented_programming)" class="mw-redirect" title="Object (object-oriented programming)">objects</a>, <a href="Modular_programming" title="Modular programming">packages</a> and other modern programming constructs.<sup id="cite_ref-Hughes_1-1" class="reference"><a href="#cite_note-Hughes-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup> This edition was written from scratch by the original authors and Tom Christiansen.<sup id="cite_ref-Hughes_1-2" class="reference"><a href="#cite_note-Hughes-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup> In July 2000, the third edition of <i>Programming Perl</i> was published. This version was again rewritten, this time by Wall, Christiansen and Jon Orwant, and covered the Perl 5.6 language.<sup id="cite_ref-2" class="reference"><a href="#cite_note-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-3" class="reference"><a href="#cite_note-3"><span class="cite-bracket">[</span>3<span class="cite-bracket">]</span></a></sup> The fourth edition constitutes a major update and rewrite of the book for Perl version 5.14, and improves the coverage of <a href="Unicode" title="Unicode">Unicode</a> usage in Perl. The fourth edition was published in February 2012. This edition is written by Tom Christiansen, <a href="Brian_d_foy" title="Brian d foy">brian d foy</a>, Larry Wall and Jon Orwant.
</p><p><i>Programming Perl</i> has also been made available electronically by O'Reilly, both through its inclusion in various editions of <i>The Perl CD Bookshelf</i> and through the "<a href="Safari_(ebooks)" class="mw-redirect" title="Safari (ebooks)">Safari</a>" service (a subscription-based website containing technical <a href="Ebook" title="Ebook">ebooks</a>). The publisher offers online a free sample of Chapter 18 of the third edition <a rel="nofollow" class="external autonumber" href="https://web.archive.org/web/20040215161250/http://www.oreilly.com/catalog/pperl3/chapter/ch18.html">[1]</a> and the Chapter 1 of the fourth edition <a rel="nofollow" class="external autonumber" href="http://cdn.oreilly.com/oreilly/booksamplers/9780596004927_sampler.pdf">[2]</a> as well as the complete set of code examples in the book (third edition) <a rel="nofollow" class="external autonumber" href="http://examples.oreilly.com/pperl3/">[3]</a>. O'Reilly maintains a trademark on the use of a camel in association with Perl, but allows noncommercial use.<sup id="cite_ref-4" class="reference"><a href="#cite_note-4"><span class="cite-bracket">[</span>4<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-5" class="reference"><a href="#cite_note-5"><span class="cite-bracket">[</span>5<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading2"><h2 id="Editions">Editions</h2></div>
<ul><li>First edition (1991; 482 pages; covers Perl 4; <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-937175-64-4</bdi>)</li>
<li>Second edition (1996; 670 pages; covers Perl 5.003; <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-1-56592-149-8</bdi>)</li>
<li>Third edition (2000; 1104 pages; covers Perl 5.6; <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-596-00027-1</bdi>)</li>
<li>Fourth edition (2012; 1184 pages; covers Perl 5.14; <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&nbsp;<bdi>978-0-596-00492-7</bdi>)</li></ul>
<p>The second edition of the book was the best-selling book in the O'Reilly Media catalog in 1996, and one of the top 100 selling books in any category at <a href="Borders_(retailer)" title="Borders (retailer)">Borders</a> in 1996.<sup id="cite_ref-6" class="reference"><a href="#cite_note-6"><span class="cite-bracket">[</span>6<span class="cite-bracket">]</span></a></sup>
</p><p>In 1998 the second edition was the 58th bestselling book at Amazon, just ahead of <a href="Bjarne_Stroustrup" title="Bjarne Stroustrup">Bjarne Stroustrup</a>'s <a href="The_C%2B%2B_Programming_Language" title="The C++ Programming Language">The C++ Programming Language</a> third edition.<sup id="cite_ref-7" class="reference"><a href="#cite_note-7"><span class="cite-bracket">[</span>7<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading2"><h2 id="See_also">See also</h2></div>
<ul><li>Some related books published by O'Reilly are: <i><a href="Learning_Perl" title="Learning Perl">Learning Perl</a></i>, <i><a href="Intermediate_Perl" title="Intermediate Perl">Intermediate Perl</a></i>, and <i><a href="Mastering_Perl" class="mw-redirect" title="Mastering Perl">Mastering Perl</a></i>.</li>
<li>The "Three Virtues of a Programmer" are three entries in the Glossary of the 2nd edition of the book, which have been popularized outside the Perl programming community.</li></ul>
<div class="mw-heading mw-heading2"><h2 id="References">References</h2></div>
<style data-mw-deduplicate="TemplateStyles:r1239543626">
/* start https://en.wikipedia.org/ */


.mw-parser-output .reflist{margin-bottom:0.5em;list-style-type:decimal}@media screen{.mw-parser-output .reflist{font-size:90%}}.mw-parser-output .reflist .references{font-size:100%;margin-bottom:0;list-style-type:inherit}.mw-parser-output .reflist-columns-2{column-width:30em}.mw-parser-output .reflist-columns-3{column-width:25em}.mw-parser-output .reflist-columns{margin-top:0.3em}.mw-parser-output .reflist-columns ol{margin-top:0}.mw-parser-output .reflist-columns li{page-break-inside:avoid;break-inside:avoid-column}.mw-parser-output .reflist-upper-alpha{list-style-type:upper-alpha}.mw-parser-output .reflist-upper-roman{list-style-type:upper-roman}.mw-parser-output .reflist-lower-alpha{list-style-type:lower-alpha}.mw-parser-output .reflist-lower-greek{list-style-type:lower-greek}.mw-parser-output .reflist-lower-roman{list-style-type:lower-roman}


/* end https://en.wikipedia.org/ */
</style><div class="reflist">
<div class="mw-references-wrap"><ol class="references">
<li id="cite_note-Hughes-1"><span class="mw-cite-backlink">^ <a href="#cite_ref-Hughes_1-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-Hughes_1-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-Hughes_1-2"><sup><i><b>c</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFHughes1997" class="citation web cs1">Hughes, Phil (1 March 1997). <a rel="nofollow" class="external text" href="https://www.linuxjournal.com/article/1366">"Programming Perl"</a>. <a href="Linux_Journal" title="Linux Journal">Linux Journal</a><span class="reference-accessdate">. Retrieved <span class="nowrap">12 March</span> 2021</span>.</cite></span>
</li>
<li id="cite_note-2"><span class="mw-cite-backlink"><b><a href="#cite_ref-2">^</a></b></span> <span class="reference-text"><cite id="CITEREFBarry2000" class="citation web cs1">Barry, Paul (1 December 2000). <a rel="nofollow" class="external text" href="https://www.linuxjournal.com/article/4345">"Programming Perl, Third Edition"</a>. Linux Journal<span class="reference-accessdate">. Retrieved <span class="nowrap">12 March</span> 2021</span>.</cite></span>
</li>
<li id="cite_note-3"><span class="mw-cite-backlink"><b><a href="#cite_ref-3">^</a></b></span> <span class="reference-text"><cite id="CITEREFZlatanov2000" class="citation web cs1">Zlatanov, Teodor (September 2000). <a rel="nofollow" class="external text" href="https://web.archive.org/web/20010518194934/http://www-106.ibm.com/developerworks/library/l-perl5.html?dwzone=linux">"Cultured Perl: Review of Programming Perl, Third Edition"</a>. DeveloperWorks. Archived from <a rel="nofollow" class="external text" href="http://www-106.ibm.com/developerworks/library/l-perl5.html?dwzone=linux">the original</a> on 18 May 2001.</cite></span>
</li>
<li id="cite_note-4"><span class="mw-cite-backlink"><b><a href="#cite_ref-4">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.perl.org/camel.html">"The Perl Camel"</a>.</cite></span>
</li>
<li id="cite_note-5"><span class="mw-cite-backlink"><b><a href="#cite_ref-5">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://web.archive.org/web/20180425080044/http://archive.oreilly.com/pub/a/oreilly/perl/usage">"The Perl Camel FAQ"</a>. Archived from <a rel="nofollow" class="external text" href="http://archive.oreilly.com/pub/a/oreilly/perl/usage">the original</a> on 2018-04-25.</cite></span>
</li>
<li id="cite_note-6"><span class="mw-cite-backlink"><b><a href="#cite_ref-6">^</a></b></span> <span class="reference-text"><cite id="CITEREFO'Reilly2015" class="citation interview cs1"><a href="Tim_O'Reilly" title="Tim O'Reilly">O'Reilly, Tim</a> (5 October 2015). <a rel="nofollow" class="external text" href="https://www.econtalk.org/tim-oreilly-on-technology-and-work/">"Tim O'Reilly on technology and work"</a>. <i>EconTalk</i> (Interview). Interviewed by Russ Roberts. The Library of Economics and Liberty. 8:10-8:50<span class="reference-accessdate">. Retrieved <span class="nowrap">12 March</span> 2021</span>.</cite></span>
</li>
<li id="cite_note-7"><span class="mw-cite-backlink"><b><a href="#cite_ref-7">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.amazon.co.uk/gp/bestsellers/1998/books/ref=zg_bsar_pg_2_books/ref=zg_bsar_pg_2_books?ie=UTF8&amp;pg=2">"Amazon Best Sellers of 1998"</a>. <i>Amazon UK</i>. 1998<span class="reference-accessdate">. Retrieved <span class="nowrap">20 August</span> 2024</span>.</cite></span>
</li>
</ol></div></div>
<div class="mw-heading mw-heading2"><h2 id="External_links">External links</h2></div>
<ul><li><a rel="nofollow" class="external text" href="http://shop.oreilly.com/product/9780596004927.do">Programming Perl, 4th Edition</a></li>
<li><a rel="nofollow" class="external text" href="http://my.safaribooksonline.com/book/programming/perl/9781449321451">Preview or read online (4th edition)</a> at <a href="Safari_Books_Online" class="mw-redirect" title="Safari Books Online">Safari Books Online</a> (subscription required)</li>
<li><a rel="nofollow" class="external text" href="http://www.yourhtmlsource.com/books/reviews/programmingperl.html">Review of Programming Perl, 3rd Edition</a></li></ul></div><!--htdig_noindex--><div><div class="zim-footer">
This article is issued from <a class="external text" title="Last edited on 2025-06-18" href="https://en.wikipedia.org/wiki/?title=Programming_Perl&amp;oldid=1296135999">Wikipedia</a>. The text is available under <a class="external text" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en">Creative Commons Attribution-Share Alike 4.0</a> unless otherwise noted. Additional terms may apply for the media files.
</div>
</div><!--/htdig_noindex--></div>
</div>
</main>
</div>
</div>
</div>

</body></html>